<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>

  </style>
</head>

<body>
  <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
  <!-- 引入样式 -->
  <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
  <!-- 引入组件库 -->
  <script src="https://unpkg.com/element-ui/lib/index.js"></script>
  <div id="app">
    <el-input v-model="val" @input="handleClick" />
  </div>
  <script>

    var app = new Vue({
      el: '#app',
      data: {
        val: '',

      },

      created () {

      },
      mounted () {
      },
      methods: {
        handleClick (s) {
          let special = ['𥔲','']
          special.some(item => {
            if (s.indexOf(item) != -1) {
              console.log("包含汉字!");
            }
          })
          // console.log(s.indexOf("𥔲") != -1);  // true
          var reg = new RegExp("[\\u4E00-\\u9FFF]+", "g");
          if (reg.test(s)) {
            console.log("包含汉字!");
          } else {
            console.log("没有包含汉字!");
          }
        },

      }
    }
    )
  </script>
</body>

</html>